package Utility;

import java.util.ArrayList;

public class ListsPerGivenLevelsHolderClass 
{
	 public ArrayList<Double> arrayListOfDoubleValues;
	 
	 ListsPerGivenLevelsHolderClass()
	 {
		 arrayListOfDoubleValues = new ArrayList<Double>(); 
	 } 
	 
	 public void add(double valueToBeAdded)
	 {
		 arrayListOfDoubleValues.add(valueToBeAdded); 
	 }
	 
	 public ArrayList<Double> getArrayListOfTheDoubleValues()
	 {
		 return arrayListOfDoubleValues;				 
	 }
	 
	 public int size()
	 {
		 return arrayListOfDoubleValues.size();
	 }
	 
	 public static ListsPerGivenLevelsHolderClass[] getNewLevelSeperatedList(int numberOfLevels)
	 {
		 ListsPerGivenLevelsHolderClass[] levelSeperatedList = new ListsPerGivenLevelsHolderClass[numberOfLevels];
		 
		 for(int i=0; i<levelSeperatedList.length; i++)
		 {
			 levelSeperatedList[i] = new ListsPerGivenLevelsHolderClass(); 
		 }	
		
		 return levelSeperatedList; 
	 }
}
